<template>
  <div id="footer" style="padding-left:16px;">
    <span :class="[prefixCls]" @click="toggleCollapsed">
      <DoubleRightOutlined   v-if="getCollapsed"/>
      <DoubleLeftOutlined v-else />
    </span>
    <span v-show="!unref(getCollapsed)"  @click="toggleCollapsed" class="font-size-14px ml-10px cursor-pointer">
      {{ !unref(getCollapsed)?"折叠":"展开"}}侧边栏
    </span>
  </div>
</template>

<script setup lang='ts'>
import { unref } from "vue"
import { MenuFoldOutlined, MenuUnfoldOutlined } from '@ant-design/icons-vue'
import { useMenuSetting } from '@/hooks/setting/useMenuSetting'
import { useDesign } from '@/hooks/web/useDesign'
const { getCollapsed, toggleCollapsed } = useMenuSetting()
const { prefixCls } = useDesign('layout-header-trigger')
</script>

<style lang="less" scoped>
#footer {
  color: rgba(255, 255, 255, 0.7);
  height: 30px;
  line-height: 30px;
  box-sizing: border-box;
}
</style>